<!DOCTYPE html>
<html>
<head>
{include file="public/meta"} 
{include file="public/seos"} 
{include file="public/include"}
<script>
    $(function(){
        MAC.Gbook.Login = {$gbook.login};
        MAC.Gbook.Verify = {$gbook.verify};
        MAC.Gbook.Init();
    });
</script>
</head>
<body>
{include file="public/head"}
<div id="conch-content" class="conch-content">
    <div class="conch-ctwrap">
        <div class="container">
            {include file="ads/ads-all"}
            <div class="hl-row-box hl-rb-gbook clearfix">
            <div class="hl-comm-input">
                <form class="hl-comm-form gbook_form gbook_font clearfix">
                   <div class="hl-comm-write hl-comm-start clearfix">
                        <textarea class="hl-comm-content gbook_content" name="gbook_content" placeholder="输入留言内容"></textarea>
                        <div class="hl-comm-handle clearfix">
                            <div class="hl-comm-remaining hl-text-muted">还可以输入<span class="gbook_remaining" >200</span></div>
                            <input class="hl-comm-submit hl-bg-conch gbook_submit" type="button" value="提交留言">
                            {if condition="$gbook.verify eq 1"}
                            <img class="hl-comm-code" src="{:mac_url('verify/index')}" data-role="{:mac_url('verify/index')}" title="看不清楚? 换一张！" onClick="this.src=this.src+'?v={:time()}'"/>
                            <input class="hl-comm-verify hl-bg-subs" type="text" name="verify" placeholder="验证码">
                            {/if}
                        </div>
                    </div>
                </form>
            </div>
            {maccms:gbook paging="yes" order="desc" by="id"}{/maccms:gbook}		
            {include file="gbook/ajax"}
            </div>
        </div>
    </div>
    <script type="text/javascript">
        var $input = $(".hl-comm-input .hl-comm-content"),
            $wrap = $(".hl-comm-input .hl-comm-write");
        $input.focus(function(){
            $wrap.addClass("hl-comm-focus");
        });
        $input.blur(function(){
            $wrap.removeClass("hl-comm-focus");
        });
    </script>
</div>
{include file="public/foot"}
</body>
</html>
